$(function(){
  $('.performance>.mt-left>ul>li').click(function(){
    switch($(this).index()){
      case 0 :
        localStorage.setItem('adress','../performance/performanceFAllocation.html');
        break;
      case 1 :
        localStorage.setItem('adress','../performance/performanceGAllocation.html');
        break;
      case 2 :
        localStorage.setItem('adress','../performance/fundAllocation.html');
        break;
      case 3 :
        localStorage.setItem('adress','../performance/gameTransfer.html');
        break;
      case 4 :
        localStorage.setItem('adress','../performance/performanceDividend.html');
        break;
    }
  })
  if($("div").hasClass("operateBtn")){
    $(".performanceContent .rl-table").height($(".performance").height()-80-$(".operating").height());
    $(window).resize(function () {
      $(".performanceContent .rl-table").height($(".performance").height()-80-$(".operating").height());
    });
  }else{
    $(".performanceContent .rl-table").height($(".performance").height()-30-$(".operating").height());
    $(window).resize(function () {
      $(".performanceContent .rl-table").height($(".performance").height()-30-$(".operating").height());
    });
  }
});
